export interface CwOtherIncome {
    id: number,
    docCode: string,
    docDate: Date,
    cid: number | null,
    uid: number | null,
    totalAmount: number | null,
    status: number | null,
    notes: string,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    did: number | null,
    didStr: string,
    uidStr: string,
    cidStr: string,
    details: CwOtherIncomeDetail[],
    refundAmount: number,
    typeId: 37
}

export interface CwOtherIncomeDetail {
    id: number,
    mainCode: string,
    payId: number,//支付或收款方式
    accountId: number,
    taxAmount: number,
    amount: number,
    notes: string,
    fee: number,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    payeeName: number,
    tax: number

}

export interface CwOtherIncomeRefund {
    id: number,
    docCode: string,
    sourceSheet: string,
    docDate: Date,
    refundAmount: number,
    status: number,
    notes: string,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    did: number,
    typeId: number,
    cid: number | null,
    uid: number | null,
    didStr: string,
    uidStr: string,
    cidStr: string,
    details: CwOtherIncomeRefundDetail[],
    totalAmount: number,

}

export interface CwOtherIncomeRefundDetail {
    id: number,
    mainCode: string,
    typeId: number,
    accountId: number,
    taxAmount: number,
    amount: number,
    notes: string,
    fee: number,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    payeeName: number,
    tax: number
    payId: number
    refundReason: string
}

export interface PaymentMethod {
    id: number,
    payName: string
}

export interface CwOtherIncomePayname {
    id: number,
    name: string,
}